.class final Lcom/direction/hold/ui/f;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field private a:Lcn/cheln/explorer/beans/FileInfo;

.field private b:Lcn/cheln/explorer/ds/sdcard/a;

.field private synthetic c:Lcom/direction/hold/ui/PathActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/PathActivity;)V
    .locals 2

    iput-object p1, p0, Lcom/direction/hold/ui/f;->c:Lcom/direction/hold/ui/PathActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lcn/cheln/explorer/ds/sdcard/a;

    sget-boolean v1, Lcn/cheln/explorer/config/a;->b:Z

    invoke-direct {v0, v1}, Lcn/cheln/explorer/ds/sdcard/a;-><init>(Z)V

    iput-object v0, p0, Lcom/direction/hold/ui/f;->b:Lcn/cheln/explorer/ds/sdcard/a;

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 3

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/direction/hold/ui/f;->c:Lcom/direction/hold/ui/PathActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->getCount()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcom/direction/hold/ui/f;->c:Lcom/direction/hold/ui/PathActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/PathActivity;->b:Lcn/cheln/explorer/cpnt/adapter/FileAdapter;

    invoke-virtual {v0, v1}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    iput-object v0, p0, Lcom/direction/hold/ui/f;->a:Lcn/cheln/explorer/beans/FileInfo;

    iget-object v0, p0, Lcom/direction/hold/ui/f;->a:Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->c()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/direction/hold/ui/f;->c:Lcom/direction/hold/ui/PathActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/PathActivity;->x:Ljava/lang/String;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/direction/hold/ui/f;->a:Lcn/cheln/explorer/beans/FileInfo;

    const-string v2, ""

    iput-object v2, v0, Lcn/cheln/explorer/beans/FileInfo;->countStr:Ljava/lang/String;

    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/direction/hold/ui/f;->a:Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v0

    iget-object v2, p0, Lcom/direction/hold/ui/f;->b:Lcn/cheln/explorer/ds/sdcard/a;

    invoke-virtual {v0, v2}, Ljava/io/File;->list(Ljava/io/FilenameFilter;)[Ljava/lang/String;

    iget-object v0, p0, Lcom/direction/hold/ui/f;->a:Lcn/cheln/explorer/beans/FileInfo;

    iget-object v2, p0, Lcom/direction/hold/ui/f;->b:Lcn/cheln/explorer/ds/sdcard/a;

    invoke-virtual {v2}, Lcn/cheln/explorer/ds/sdcard/a;->a()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcn/cheln/explorer/beans/FileInfo;->a(Ljava/lang/Integer;)V

    iget-object v0, p0, Lcom/direction/hold/ui/f;->a:Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->k()V

    iget-object v0, p0, Lcom/direction/hold/ui/f;->b:Lcn/cheln/explorer/ds/sdcard/a;

    invoke-virtual {v0}, Lcn/cheln/explorer/ds/sdcard/a;->b()V

    iget-object v0, p0, Lcom/direction/hold/ui/f;->c:Lcom/direction/hold/ui/PathActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/PathActivity;->i:Landroid/os/Handler;

    const/4 v2, 0x6

    invoke-virtual {v0, v2}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1

    :cond_1
    return-void
.end method
